Skip to content

Fix JRuby in CI - #452

Merged
timriley merged 4 commits into
mainfrom
require-jruby-in-ci
Oct 4, 2026
Merged

timriley merged 4 commits into
mainfrom
require-jruby-in-ci

Conversation

@timriley

@timriley timriley commented Oct 4, 2026

Copy link
Copy Markdown
Member

No description provided.

On JRuby, databases must be reached via JDBC URLs such as "jdbc:postgresql://localhost/app?user=postgres&password=secret". Parse the URL nested after "jdbc:", and read the user and password from query params when they are not in the userinfo (the PostgreSQL JDBC driver does not accept them there).

Use JDBC URLs for the PostgreSQL and MySQL specs when running on JRuby.

On JRuby, PostgreSQL also needs the hanami fix that checks for the jdbc-postgres gem (not jdbc-postgresql).
We added it so pry could load on Ruby 4.0, where readline is a bundled gem rather than a default gem. However, pry 0.16 now depends on reline primarily, we no longer need readline.

Removing readline is helpful because it was interfering with the JRuby builds, where it installed by did not actually define the `Readline` class, which left pry with no input.
@timriley
timriley force-pushed the require-jruby-in-ci branch from 0d28fc5 to 02c0a5e Compare October 4, 2026 09:33
@timriley timriley changed the title Expect JRuby to pass in CI Fix JRuby in CI Oct 4, 2026
@timriley
timriley merged commit 95a0d63 into main Oct 4, 2026
12 checks passed
@timriley
timriley deleted the require-jruby-in-ci branch October 4, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant